<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="shortcut icon" href="<?php echo DIR_WEB;?>/favicon.ico">
        <title title="腾讯网应用平台组倾力打造">磐石调查系统Api在线测试工具--磐石投票管理后台</title>
        
        <link href="<?php echo DIR_WEB;?>/dist/css/bootstrap.css" rel="stylesheet" type="text/css">
        <link href="<?php echo DIR_WEB;?>/css/survey.admin.css" rel="stylesheet" type="text/css">
        <link href="<?php echo DIR_WEB;?>/css/survey.api.css" rel="stylesheet" type="text/css"/>

        <script type="text/javascript" src="http://mat1.gtimg.com/app/opent/js/jquery-1.4.3.min.js"></script>
        <script type="text/javascript" src="<?php echo DIR_WEB;?>/js/test/common.js"></script>
        <script type="text/javascript" src="<?php echo DIR_WEB;?>/js/test/common_dialog.js"></script>
        <script type="text/javascript" src="<?php echo DIR_WEB;?>/js/test/common.api.js"></script>
        <!--<script type="text/javascript" src="/api?type=list"></script>-->
</head>
<body>
    <div class="navbar-wrapper">
            <div class="">
                <div class="navbar navbar-inverse navbar-static-top">
                    <div class="container">
                        <div class="navbar-collapse collapse">
                            <a href="/" class="navbar-brand"  title="腾讯网应用平台组倾力打造">
                                <img src="<?php echo DIR_WEB;?>/img/logo-panshi.jpg" alt="磐石投票系统" style="width:18px;height:18px;margin-right:10px;">磐石投票系统
                            </a>
                            <ul class="nav navbar-nav">
                                <!--
                                <li class="dropdown">
                                <a class="dropdown-toggle" data-toggle="dropdown"  href="/poll/list">投票</a>
                                <ul class="dropdown-menu">
                                    <li class=""><a href="/poll/create">创建</a></li>
                                    <li class=""><a href="/poll/list">查看</a></li>
                                </ul>
                                </li>
                                <li class="dropdown">
                                <a class="dropdown-toggle" data-toggle="dropdown"  href="/survey/list">调查</a>
                                <ul class="dropdown-menu">
                                    <li class=""><a href="/survey/create">创建</a></li>
                                    <li class=""><a href="/survey/list">查看</a></li>
                                </ul>
                                </li>
                                -->
                                <li><a href="/poll/list">投票</a></li>
                                <li><a href="/survey/list">调查</a></li>
                                <li><a href="/user/">用户</a></li>
                                <li><a href="/api/">接口</a></li>
                                <li><a href="/doc#full-reader">文档</a></li>
                            </ul>
                            <ul class="nav navbar-nav navbar-right">
                                <li class="dropdown">
                                    <a class="dropdown-toggle" data-toggle="dropdown" href="#survey">minggong</a>
                                    <ul class="dropdown-menu">
                                        <li class=""><a><span class="badge pull-right">42</span>我的投票</a></li>
                                        <li class=""><a><span class="badge pull-right">42</span>我的提醒</a></li>
                                        <li class=""><a><span class="badge pull-right">42</span>申请权限</a></li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
    </div>
    <div class="container" id="main">
        <!--投票 增加 修改-->
        <div class="row">
            <div class="col-md-2 left">
                <div class="api_list" id="api_list">
                    <noscript></noscript>
                </div>
            </div>
            <div class="col-md-10 right">
                <h3 class="tabbar" id="iframe_tab">
                    <a href="javascript:;" class="tab active" data-for="result" hidefocus>请求配置</a>
                </h3>
                <div class="form_debuger" id="oauth_form">
                    <div id="apides" class="notice_green" style="margin-top:10px;">Api调试工具，用于测试Api</div>
                    <h3 class="t1">请求地址</h3>
                    <div>
                        <span class="cgi_url_span">
                            <input type="text" placeholder="http://" name="cgi_url" class="input_text cgi_url"/>
                            <span class="host_list none">
                                <dl id="host_list"></dl>
                            </span>
                        </span>
                        <select name="cgi_method">
                            <option value="get">get</option>
                            <option value="post">post</option>
                        </select>
                    </div>
                </div>
                
                <form class="form_debuger" target="oauth_form" action="request.php" method="post" onsubmit="return common.submit(this)">
                    <div id="cookies_panel">
                        <h3 class="t1">cookies列表</h3>
                        <ul class="para_list" id="cookies_list"></ul>
                    </div>
                    <div id="params_panel">
                        <h3 class="t1">参数列表
                            <span class="t1_right">
                                <a href="javascript:;" class="para_add btn2" id="add_para_pic" type="file">添加图片参数</a> 
                                <a href="javascript:;" class="para_add btn2" id="add_para" type="text">添加普通参数</a>
                            </span>
                        </h3>
                        <ul class="para_list" id="para_list"></ul>
                    </div>
                    <div align="center" class="mb25">
                        <input type="button" value="保存API" class="btn3" id="save_api"/>
                        <input type="submit" value="发送请求" class="btn2"/>
                    </div>
                </form>
                
                <iframe height="300" width="90%" src="about:blank" frameborder="0" marginwidth="0" marginheight="0" style="padding:0;" id="oauth_form_result" name="oauth_form" class="form_result" srcolling="no"></iframe>
            </div>
        </div>
        
    </div>

    <script>
        $(function(){
            if (common && common._dialog){
                window.common && common.init("");
            }else{
                var caller = arguments.callee;
                setTimeout(function(){caller();},100);
            }
        });
    </script>
</body>
</html>
